'use strict';

module.exports = app => {
  class SpecialityController extends app.Controller {
    async init (ctx) {
      let initSpeciality = new ctx.app.model.education.speciality({
        name: '默认专业'
      })

      initSpeciality.save()

      ctx.body = ctx.helper.rest.resp({
        ctx,
        data: initSpeciality
      })
    }
  }

  return SpecialityController
}
